package com.jt.demo10.mapper;

import com.jt.demo10.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//@Component
@Repository //交给spring容器管理,key : userMapperImpl,value : 反射的对象
public class UserMapperImpl implements UserMapper{
    @Override
    public void addUser(User user) {
        System.out.println("完成用户入库的操作:" + user.getName());
    }
}
